import {
    inject
} from "vue"
export default {
    getInfect(state) {
        state.common = inject('common')
        state.api = inject('api')
    },
    getIsAnchor(state, payload) {
        state.isAnchor = payload
    },
    changeIsShow(state, payload) {
        state.isShow = !state.isShow
        state.showType = payload
    },
    getTips(state, payload) {
        // console.log(payload);
        state.isTips = payload.isShow
        state.tips = payload.msg
    },
    getCur(state, payload) {
        state.cur = payload
        // console.log('state', state.cur);
    },
    getFirst(state, payload) {
        state.firstComing = payload
        // console.log('state', state.cur);
    },
    getUserInfo(state, payload) {
        state.userInfo = payload
        // console.log('state', state.cur);
    },
    getAnchorInfo(state, payload) {
        state.anchorInfo = payload
        // console.log('state', state.cur);
    },
}